import { debouce } from './utils';

export const itemListenerMixin = {
    mounted() {
        let newRefresh = debouce(this.$ref.scroll.refresh, 100)
        this.itemImgListener = () => {
            newRefresh()
        }
        this.$bus.$on('itemImgLoad', this.itemImgListener)
    }
}